<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <meta name="renderer" content="webkit">
        <title></title>
        <link rel="stylesheet" href="css/pintuer.css">
        <link rel="stylesheet" href="css/admin.css">
        <script src="js/jquery.js"></script>
        <script src="js/pintuer.js"></script>
    </head>
    <body>
        <div class="panel admin-panel">
            <div class="panel-head"><strong><span class="icon-key"></span> 修改密码</strong></div>
            <div class="body-content">
                <form method="post" class="form-x" action="modifyStudent">
                    <c:forEach items="${requestScope.student}" var="student">
                        <div class="form-group">
                            <div class="label">
                                <label for="sitename">帐号：</label>
                            </div>
                            <div class="field">
                                <label style="line-height:33px;">
                                        ${student.sno}<input type="hidden" class="input w50" name="sno" value="${student.sno}"/>
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="label">
                                <label for="sitename">密码：</label>
                            </div>
                            <div class="field">
                                <input type="text" class="input w50" name="password" size="50" placeholder="请输入新密码"
                                       data-validate="required:请输入新密码,length#>=5:新密码不能小于5位"
                                       value="${student.password}"/>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="label">
                                <label for="sitename">姓名：</label>
                            </div>
                            <div class="field">
                                <input type="text" class="input w50" name="sname" size="50" value="${student.sname}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="label">
                                <label for="sitename">性别：</label>
                            </div>
                            <div class="field">
                                <input type="text" class="input w50" name="ssex" size="50" value="${student.ssex}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="label">
                                <label for="sitename">出生日期：</label>
                            </div>
                            <div class="field">
                                <input type="date" class="input w50" name="sbirthday" size="50" value="${student.sbirthday}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="label">
                                <label for="sitename">特长：</label>
                            </div>
                            <div class="field">
                                <input type="text" class="input w50" name="speciality" size="50" value="${student.speciality}"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="label">
                                <label for="sitename">总分：</label>
                            </div>
                            <div class="field">
                                <input type="text" class="input w50" name="tc" size="50" value="${student.tc}"/>
                            </div>
                        </div>

                    </c:forEach>
                    <div class="form-group">
                        <div class="label">
                            <label></label>
                        </div>
                        <div class="field">
                            <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </body>
</html>